//
//  YConfig.h
//  ArtCircle
//
//  Created by sunbin on 2017/5/21.
//  Copyright © 2017年 HuaYue. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YConfig : NSObject

single_interface(YConfig);
/**
 *  保存用户的账号与密码
 */
+ (void)saveOwnAccount:(NSString *)account andPassword:(NSString *)password;
/**
 *  获取用户的账号与密码
 */
+ (NSArray *)getOwnAccountAndPassword;

/**
 *  保存用户的UID
 */
+ (void )saveOwnID:(NSString *)uid;
/**
 *  得到用户的UID
 */
+ (int64_t)getOwnID;

/**
 *  缓存清理
 */
+ (void)clearCookie;







- (void)insertData:(NSDictionary *)data;


- (void)deleteData;

- (void)updateData:(NSDictionary *)data;

- (ACUserModel *)searchData;






- (void)updateNickName:(NSString *)nickName;

- (void)updateSex:(NSString *)sex;
- (void)updateHeadUrl:(NSString *)headUrl;







@end
